.root {
    -fx-base: #f0f0f0;
    -fx-font-family: 'Segoe UI';
    -fx-font-size: 14px;
}

.button {
    -fx-background-color: #4a9dff;
    -fx-text-fill: white;
    -fx-background-radius: 5;
    -fx-padding: 8 15;
}

.button:hover {
    -fx-background-color: #3a8dee;
}

.button:disabled {
    -fx-opacity: 0.7;
}

.text-field {
    -fx-background-radius: 5;
    -fx-border-color: #cccccc;
    -fx-border-radius: 5;
    -fx-padding: 5;
}

.label-title {
    -fx-font-weight: bold;
    -fx-text-fill: #333333;
}

.tree-cell {
    -fx-padding: 5 3;
    -fx-user-select: text;
}

.tree-cell:hover {
    -fx-background-color: #e3f2ff;
}

.tree-cell:selected {
    -fx-background-color: #4a9dff;
    -fx-text-fill: white;
}

.status-bar {
    -fx-background-color: linear-gradient(to bottom, #f8f8f8, #e0e0e0);
    -fx-padding: 10;
    -fx-border-width: 1 0 0 0;
    -fx-border-color: #cccccc;
}

.tree-text-field {
    -fx-background-color: transparent;
    -fx-border-color: transparent;
    -fx-padding: 0;
    -fx-font-size: 14px;
}

.tree-text-field .text {
    -fx-fill: #333333;
}

.tree-text-field:disabled {
    -fx-opacity: 1;
}

.selectable-text {
    -fx-background-color: transparent;
    -fx-border-color: transparent;
    -fx-font-size: 14px;
    -fx-user-select: text;       /* 允许文本选择 */
    -fx-display-caret: true;     /* 显示光标 */
}

.selectable-text .text {
    -fx-fill: #333333;
    -fx-cursor: text;            /* 设置文本光标 */
}

.highlighted {
    -fx-background-color: #fff3cd !important;
    -fx-font-weight: bold;
}

.selectable-text .text-input {
    -fx-highlight-fill: #4a9dff;
    -fx-highlight-text-fill: white;
}

/* 文本选中高亮颜色 */
.selectable-text .text-input .selection {
    -fx-fill: #4a9dff !important;
    -fx-stroke: transparent;
}
